<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@page import="com.wyq.util.PropertiesUtil" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>观众登记成功</title>
	<link rel="stylesheet" type="text/css" href="css/style.css"/>
	
	<script type="text/javascript" src="JS/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="JS/common.js"></script>
	
	<style type="text/css">
		*{
		 	margin:0px;
			font-size: 12px;	
		 }
		 .submitcss
		 {
		 	font-weight: bold;
		 }
		 .errordiv
		 {
		 	border:2px solid #FF3030;
		 	background-color:#FF8C00;
		 	width:200px;
		 	height:25px
		 }
	</style>

  </head>
  <body>
   <center>
   <iframe src="header.jsp?source=${source }&imgPath=${showInfo.hearderImgPath}" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" width="100%" height="235px"></iframe>
   <table width="1000px" align="center" cellpadding="0" cellspacing="0" style="width:679px; margin:0 auto; background-color:#FFF">
   		<tr>
   			<td bgcolor="#FFFFFF" class="fontblack">
   			<table cellpadding="2" cellspacing="2" style="border:1px solid #999999; padding:10px" width="1000px">
   				<!--  -->
   				<tr>
   					<td>
   					尊敬的<b><s:property value="#request.audience.audience_name"/>
		   			<s:if test="#request.audience.audience_sex == 0">先生</s:if>
		   			<s:elseif test="#request.audience.audience_sex == 1">女士</s:elseif></b>：您好
   					</td>
   				</tr>
   				<tr><td height="5px"></td></tr>
   				<tr>
   				<td style="padding-left: 20px">
   					感谢您注册参观<b><s:property value="#request.showInfo.showName"/></b>，您的预登记信息已经被正式确认！
   				</td>
   				</tr>
   				<tr><td height="5px"></td></tr>
   				<tr>
   					<td style="padding-left: 20px">
   					请仔细核对以下参观信息，并打印出此参观确认函(务必可以清晰地看到卡号)，至展会现场预登记观众接待处出示此参观确认函及参观人有效证件(身份证或两张名片均可)，快速换取观众胸卡进入参观。
   					</td>
   				</tr>
   			</table>
   			</td>
   		</tr>
   			<tr>
   				<td height="10px"></td>
   			</tr>
   			<tr>
   				<td>
   				<table cellpadding="2" cellspacing="2" style="border:1px solid #999999; padding:10px" width="1000px">
   					<tr height="30px">
			   			<td align="center">
			   				<b style="font-size: 18px;"><s:property value="#request.showInfo.showName"/></b>
			   			</td>
			   		</tr>
			   		<tr>
			   			<td>
			   				<b>专业参观时间：</b><s:property value="#request.showInfo.showTime"/>
			   			</td>
			   		</tr>
			   		<tr>
			   			<td>
			   				<b>展会地点：</b><s:property value="#request.showInfo.showAddress"/>
			   			</td>
			   		</tr>
			   		<tr>
			   			<td height="5px"></td>
			   		</tr>
			   		<tr>
			   			<td>
			   				<b>姓名：</b><s:property value="#request.audience.audience_name"/>
			   			</td>
			   		</tr>
			   		<tr>
			   			<td>
			   				<b>预登记号：</b><s:property value="#request.audience.id"/>
			   			</td>
			   		</tr>
			   		<tr>
			   			<td height="70px">
			   				<img src="${pageContext.request.contextPath}/audienceCode.action?code=${audience.id }&barType=CODE39&checkCharacter=n&checkCharacterInText=n"  width='400px' height='100px'/>
			   			</td>
			   		</tr>
   				</table>
   				</td>
   			</tr>
   			<tr>
   				<td height="10px" align="right"><a href="#" onclick="javascript:window.print();">点击打印</a></td>
   			</tr>
   			<tr>
   				<td>
   					<table cellpadding="2" cellspacing="2" style="border:1px solid #999999; padding:10px" width="1000px">
   						<tr>
   							<td>
   								<b>注意事项：</b>
   							</td>
   						</tr>
   						<tr>
   							<td style="padding-left: 20px">
   							• 本邀请函仅限专业观众参观日期间使用 <s:property value="#request.showInfo.showTime"/>。
   							</td>
   						</tr>
   						<tr>
   							<td style="padding-left: 20px">
   							• 此确认函不可转让，出售，只可由本人使用一次。请务必带上此确认函及个人名片(两张)前往展会现场，否则，主办方有权利收取您30元的门票费用。
   							</td>
   						</tr>
   						<tr>
   							<td style="padding-left: 20px">
							• 此信息只能使用一次，第二个持此相同信息的人将无法使用。如有同公司多人登记，请分别独立注册。 
   							</td>
   						</tr>
   						<tr>
   							<td>
   								<b>如有疑问请联系我们：</b>
   							</td>
   						</tr>
   						<tr>
		   			<td style="padding-left: 20px">
		   			电话：<s:property value="#request.showInfo.showTel"/>
		   			</td>
			   		</tr>
			   		<tr>
			   			<td style="padding-left: 20px">
			   			传真：<s:property value="#request.showInfo.showFax"/>
			   			</td>
			   		</tr>
			   		<tr>
			   			<td style="padding-left: 20px">
			   			Email：<s:property value="#request.showInfo.showEmail"/>
			   			</td>
			   		</tr>
			   		<tr>
			   			<td style="padding-left: 20px">
			   			网址：
			   			<a href="<%=PropertiesUtil.getVal("weburl") %>?source=${showInfo.urlChannel }" target="_blank" style="font-size: 18px;">
							<c:if test="${!empty showInfo.urlChannel }">
							<%=PropertiesUtil.getVal("weburl") %>?source=${showInfo.urlChannel }
							</c:if>
							<c:if test="${empty showInfo.urlChannel }">
							<%=PropertiesUtil.getVal("weburl") %>
							</c:if>
						</a>
			   			</td>
			   		</tr>
			   		<tr height="10px">
			   			<td></td>
			   		</tr>
   					</table>
   				</td>
   			</tr>
   </table>
   <iframe src="${pageContext.request.contextPath}/preAudienceAction!toIndexPage.action?source=${showInfo.urlChannel}&pageName=footer" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" width="100%" height="50"></iframe>
   </center>
  </body>
</html>